﻿namespace FEShop.AppUserService.Configs
{
    /// <summary>
    /// 定义配置模型类
    /// </summary>
    public class AppUserConfig
    {
        /// <summary>
        /// 秘钥配置
        /// </summary>
        public SecretConfig? SecretConfig { get; set; }
        /// <summary>
        /// 连接字符串
        /// </summary>
        public ConnectionStrings? ConnectionStrings { get; set; }
        /// <summary>
        /// SideCar
        /// </summary>
        public SideCar? SideCar { get; set; }

    }

    /// <summary>
    /// 
    /// </summary>
    public class SecretConfig
    {
        public string? JwtKey { get; set; }
        public string? ApiKey { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class ConnectionStrings
    {
        public string? RedisConnection { get; set; }
        public string? MySqlConnection { get; set; }
    }

    public class SideCar
    {
        public string HttpEndpointUrl { get; set; }
    }
}
